package com.mairuide.robot.question;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.mairuide._frame.base.BaseModel;

/**
 * 机器人问题表
 * @author ♣MH
 *
 */
@Entity
@Table(name="TB_M_QUESTION")
public class MQuestion extends BaseModel {
	
	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 5182341130301688356L;
	@Id
    @Column(name = "Q_ID")
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "M_QUESTION")
	@SequenceGenerator(name = "M_QUESTION", sequenceName = "SEQ_M_QUESTION",allocationSize=1)
	private Integer qId;
	/**
	 * 问题
	 */
	@Column(name = "QUESTION")
	private String question;
	
	/**
	 * 回答
	 */
	@Column(name = "ANSWER")
	private String answer;
	
	/**
	 * 创建人id
	 */
	@Column(name = "CREATE_ID")
	private Integer createId;
	
	public Integer getqId() {
		return qId;
	}
	public void setqId(Integer qId) {
		this.qId = qId;
	}
	public String getQuestion() {
		return question;
	}
	public void setQuestion(String question) {
		this.question = question;
	}
	public String getAnswer() {
		return answer;
	}
	public void setAnswer(String answer) {
		this.answer = answer;
	}
	public Integer getCreateId() {
		return createId;
	}
	public void setCreateId(Integer createId) {
		this.createId = createId;
	}
	
	
}
